﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace DNA.Mvc.Exporting
{
    /// <summary>
    /// Present the packing context object
    /// </summary>
    public class ExportingContext : TraceableCommandContext<Exporter>
    {
        public ExportingContext() : this(null) { }

        public ExportingContext(object _params) : base(_params) { Installers = new Dictionary<string, string>(); }

        /// <summary>
        /// Gets the current httpcontext object.
        /// </summary>
        public virtual HttpContextBase HttpContext { get; set; }

        public virtual string Destination { get; set; }

        public virtual Dictionary<string, string> Installers { get; private set; }

        /// <summary>
        /// Gets the current exporter object.
        /// </summary>
        public virtual Exporter Exporter 
        {
            get { return InnerCommand; }
            set { InnerCommand = value; }
        }
    }
}
